package com.shililu.wx.web;


import com.shililu.wx.vo.CallbackReq;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;


@RestController
@Slf4j
public class WxCallBackController {

    @Autowired
    private RestTemplate restTemplate;

    @PostMapping("/wx/callback")
    public String getApi(CallbackReq req) {

        log.info("收到微信扫描回调消息{}",req);
        return "success";
    }

}
